<template>
  <div>methods改写</div>
  <p>count: {{ count }}</p>
  <button @click="fn">count++</button>
</template>

<script setup>
import { ref } from "vue";

const count = ref(10);
const fn = () => {
  count.value++;
};
</script>
